Auto merge of #4944 - mathstuf:better-gitignore-template, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 16 Jan 2018 06:11:46 +0000 (06:11 +0000)
committerbors <bors@rust-lang.org>
Tue, 16 Jan 2018 06:11:46 +0000 (06:11 +0000)
commitc5e21db8d450a46fb092cce0e634b71c0d75d5fb
tree12a910a22c744d2c49cf38dbb4394dc39f913852
parent078f4917736cebfa4c753accd7d5beed20f5214e
parentf4e0eef11a92c32b6b13857a3c1ecdda2fda6478
Auto merge of #4944 - mathstuf:better-gitignore-template, r=alexcrichton

cargo_new: drop the trailing slash for target exclusion in Git

When `target` is a symlink (e.g., to keep build outputs on a separate
partition), Git will not match the `/target/` ignore to the symlink
since it is not a directory. Drop the trailing slash to support ignoring
`target` as a symlink.